public class test1 {
    static class MyThreat extends Thread{
        @Override
        public void run() {
            try {
                Thread.sleep(1000);
                System.out.println("hello  threat");
            } catch (InterruptedException e) {
                throw new RuntimeException(e);
            }

        }
    }

    public static void main(String[] args) {
        Thread t1=new MyThreat();
        t1.start();

        System.out.println("hello main");
    }
}
